package com.nuoniu.sibanyun.controller.erp;


import com.nuoniu.sibanyun.common.BaseController;
import com.nuoniu.sibanyun.common.result.HttpResult;
import com.nuoniu.sibanyun.service.erp.IErpAccountingTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.mail.HtmlEmail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 会计科目类型 前端控制器
 * </p>
 *
 * @author baiqiang
 * @since 2020-09-25
 */
@RestController
@RequestMapping("/erp/accountingType")
@Api(value = "会计科目类型", tags = "会计科目类型管理")
public class ErpAccountingTypeController extends BaseController {

    @Autowired
    private IErpAccountingTypeService accountingTypeService;

    @ApiOperation("获取会计科目类型")
    @GetMapping("getAll")
    public HttpResult getAll() {
        return HttpResult.ok(accountingTypeService.list());
    }
}
